#!/bin/bash

ulimit -c unlimited
echo "core-%e-%p-%t" > /proc/sys/kernel/core_pattern

rm -f *.o *.so *.a core*

g++ test_exec_command.cpp -o a.out

./a.out